<template>
    <div class="twob">
        <div class="imgBox" v-if="arr.length!=0"><img :src="arr[0].backgroundImage5[2]" alt=""></div>
        <div class="wrap">
            <Sonpopular v-for="(v,i) in arrb" :key="i" :img="v.image" :h3="v.h3" :p="v.p" :sp1="v.sp1" :sp2="v.sp2"/>
        </div>
    </div>
</template>

<script>
import {getlink} from "@/api/getapi.js"
import Sonpopular from "@/components/ddgHD/sonpopular.vue"
export default {
    data(){
        return {
            arr:[],
            arrb:[]
        }
    },
    mounted(){
        getlink("/data/ddg").then((ok)=>{
            this.arr=ok.data.slider
            this.arrb=ok.data.sliderImgcb
        })
    },
    components:{
        Sonpopular
    }
}
</script>

<style scoped>
    .twob{
        font-size: 0.12rem;
    }
    .imgBox{
        width: 100%;
    }
    img{
        margin-top: 0.2rem;
        width: 100%;
    }
    .wrap{
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }
</style>